package com.lync.exception;

import lombok.Data;

//自定义异常处理器，用于封装异常信息，对异常进行分类
@Data
public class SystemException extends RuntimeException{
    private Integer code;

    public SystemException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public SystemException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

}
